<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Report Title</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 20px;
            padding: 0;
        }
        h1, h2 {
            color: #333;
        }
        p {
            font-size: 16px;
            color: #666;
        }
        table {
            width: 100%;
            border-collapse: collapse;
        }
        th, td {
            border: 1px solid #ddd;
            padding: 8px;
            text-align: left;
        }
        th {
            background-color: #f2f2f2;
        }
    </style>
</head>
<body>
    <h1>Week status update for: @{outputs('Get_a_goal')?['body/name']}</h1>
    <h2>Overall Metric Status: @{outputs('Get_a_goal')?['body/status']}</h2>
    <p>Current value: @{formatNumber(outputs('Get_a_goal')?['body/currentValue'], 'P')
}<br>
Target Value: @{formatNumber(outputs('Get_a_goal')?['body/targetValue'], 'P')
}
The target end date for the metric is @{formatDateTime(outputs('Get_a_goal')?['body/completionDate'], 'dd/MM/yyyy')
}
</p>
    
    <h2>Most recent updates:</h2>
    <table>
@{outputs('Compose_-_Notes_String')}
    </table>

<p>
    For more detailed analysis, see the 
    <a href="https://app.powerbi.com/groups/26ea405b-8481-462c-ba99-49981047baeb/scorecards/0a746a49-22ed-497f-ae36-3d96ada92bdc?experience=power-bi&goal=1dc3d33d-1ffd-4ea1-8d3c-c27d3518187f" target="_blank">metric in Power BI</a>.
</p>

  
</body>
</html>